home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / introduction / 356 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: combo.ganesha.com!peterk
  2. From: peterk@combo.ganesha.com (Dr. Peter Kittel)
  3. Subject: Re: "=" Question
  4. Newsgroups: comp.sys.amiga.introduction
  5. Reply-To: peterk@combo.ganesha.com
  6. References: <158.6621T803T1523@ibm.net> <4g8597$8aa@guava.epix.net> <641.6628T629T99@ibm.net>
  7. Message-ID: <peterk.0lcr@combo.ganesha.com>
  8. Date: 1 Mar 96 07:43:44 MEZ
  9. Organization: Private Site
  10.  
  11. In article <641.6628T629T99@ibm.net> geohei@ibm.net (Georges Heinesch) writes:
  12. >
  13. >But !
  14. >
  15. >Why can't the "Echo" command print a "=" if not between quotes?
  16. >
  17. >Try : 1. Echo "w=2"
  18. >      2. Echo w=2
  19.  
  20. Simple: When entered without quotes, the equals sign has a special
  21. meaning in AmigaDOS command lines. You can always link the name
  22. and the value of an argument by this sign. It's only necessary in
  23. cases where else an ambiguity would happen, so hardly anybody uses
  24. it in normal life. One example from my old scripts is from before
  25. the times with the backtick feature. Without this, you had to write
  26. really awkward lines like
  27. EVAL <ENV:Schleife{$$} >NIL: TO=T:Qwe{$$} VALUE2=1 OP=- ?
  28. just to decrease the value of Schleife by 1.
  29.  
  30. So in the above case the sign is interpreted by AmigaDOS and thus
  31. not displayed as part of the result.
  32.  
  33. -- 
  34. Best Regards, Dr. Peter Kittel       //    Visit  http://www.amiga.de
  35. Private Site in Frankfurt, Germany \X/  Email to: peterk@combo.ganesha.com
  36. Employed at AMIGA Technologies GmbH in Bensheim, Germany
  37.